#!/bin/bash
# -*- encoding: utf-8 -*-
#Modify Time :20/12/17 17:25
#Author:ttcandy
#函数

string pattern = @"((25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)";
string input = "net:tcp//192.168.5.173:65535/MyService";
Regex reg = new Regex(pattern);
var ret=  reg.Matches(input);


